package com.czk.demo;

import com.czk.demo.service.UserService;
import com.czk.spring.CzkApplicationContext;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/3/31 9:45
 */
public class Test {
    public static void main(String[] args) {
        // 模拟spring启动
        // 创建bean
        CzkApplicationContext czkApplicationContext = new CzkApplicationContext(AppConfig.class);
        UserService userService = (UserService) czkApplicationContext.getBean("userService");
        System.out.println(userService);
        userService.test();
    }
}
